package com.gitee.theskyzero.data.db;

import lombok.Data;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Data
@Entity
@Table(name = "test")
public class Test {
    @Id
    Long id;
    String name;

    @CreatedBy
    String createBy;

    @CreatedDate
    LocalDateTime gmtCreate;

    @LastModifiedBy
    String modifyBy;

    @LastModifiedDate
    LocalDateTime gmtModify;
}
